package utils;

import java.util.concurrent.*;

public class ThreadPoolUtil {
    public static ExecutorService fixedThreadPool;

    private static final int corePoolSize = 40;
    private static final int maximumPoolSize = 80;
    private static final long keepAliveTime = 30;

    static{
        fixedThreadPool = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(50));
    }

}
